#ifndef OPENITEM_H
#define OPENITEM_H

#include<QGraphicsItem>
#include<QPixmap>
#include<QString>
#include<QPainter>
#include<QStyleOptionGraphicsItem>
#include<QWidget>
#include<QRectF>
#include<QObject>
class OpenItem : public QGraphicsItem
{

public:
    OpenItem(QString path,bool isMove);

    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    // QGraphicsItem interface

    void advance(int phase);

private:
    QPixmap img;
//    int index;
    bool isMove;



};

#endif // OPENITEM_H
